home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / gmp-132.lha / gmp-1.3.2 / tests / Makefile next >
Makefile  |  1993-05-07  |  2KB  |  65 lines

  1. # Makefile for tests for GNU MP
  2.  
  3. # Copyright (C) 1991, 1993 Free Software Foundation, Inc.
  4.  
  5. # This file is part of the GNU MP Library.
  6.  
  7. # The GNU MP Library is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 2, or (at your option)
  10. # any later version.
  11.  
  12. # The GNU MP Library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. # GNU General Public License for more details.
  16.  
  17. # You should have received a copy of the GNU General Public License
  18. # along with the GNU MP Library; see the file COPYING.  If not, write to
  19. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. CC = gcc
  22.  
  23. TEST_LIBS = ../libgmp.a
  24. OPT = -O -g
  25. CFLAGS = -I. -I.. $(OPT)
  26.  
  27. TEST_SRCS = tst-mul.c tst-dm.c tst-dm_ui.c tst-mdm.c tst-mdm_ui.c tst-gcd.c \
  28.  tst-sqrtrem.c tst-convert.c
  29. TEST_OBJS = tst-mul.o tst-dm.o tst-dm_ui.o tst-mdm.o tst-mdm_ui.o tst-gcd.o \
  30.  tst-sqrtrem.o tst-convert.o
  31. TESTS = tst-mul tst-dm tst-dm_ui tst-mdm tst-mdm_ui tst-gcd \
  32.  tst-sqrtrem tst-convert
  33.  
  34. tests: $(TESTS)
  35.     for i in $(TESTS); do echo $$i; ./$$i; done
  36.  
  37. tst-mul: tst-mul.o $(TEST_LIBS)
  38.     $(CC) $(CFLAGS) -o $@ $@.o $(TEST_LIBS)
  39. tst-dm: tst-dm.o $(TEST_LIBS)
  40.     $(CC) $(CFLAGS) -o $@ $@.o $(TEST_LIBS)
  41. tst-dm_ui: tst-dm_ui.o $(TEST_LIBS)
  42.     $(CC) $(CFLAGS) -o $@ $@.o $(TEST_LIBS)
  43. tst-mdm: tst-mdm.o $(TEST_LIBS)
  44.     $(CC) $(CFLAGS) -o $@ $@.o $(TEST_LIBS)
  45. tst-mdm_ui: tst-mdm_ui.o $(TEST_LIBS)
  46.     $(CC) $(CFLAGS) -o $@ $@.o $(TEST_LIBS)
  47. tst-gcd: tst-gcd.o $(TEST_LIBS)
  48.     $(CC) $(CFLAGS) -o $@ $@.o $(TEST_LIBS)
  49. tst-sqrtrem: tst-sqrtrem.o $(TEST_LIBS)
  50.     $(CC) $(CFLAGS) -o $@ $@.o $(TEST_LIBS)
  51. tst-convert: tst-convert.o $(TEST_LIBS)
  52.     $(CC) $(CFLAGS) -o $@ $@.o $(TEST_LIBS)
  53.  
  54. $(TEST_PREFIX)clean:
  55.     rm -f $(TESTS) $(TEST_OBJS) core
  56.  
  57. tst-convert.o : tst-convert.c ../gmp.h urandom.h 
  58. tst-dm.o : tst-dm.c ../gmp.h urandom.h 
  59. tst-dm_ui.o : tst-dm_ui.c ../gmp.h urandom.h 
  60. tst-gcd.o : tst-gcd.c ../gmp.h urandom.h 
  61. tst-mdm.o : tst-mdm.c ../gmp.h urandom.h 
  62. tst-mdm_ui.o : tst-mdm_ui.c ../gmp.h urandom.h 
  63. tst-mul.o : tst-mul.c ../gmp.h ../gmp-impl.h ../gmp-mparam.h ../longlong.h urandom.h 
  64. tst-sqrtrem.o : tst-sqrtrem.c ../gmp.h urandom.h 
  65.